﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TaxDocumentsList.ascx.cs" Inherits="Controls_TaxDocumentsList" %>

<p>TaxDocuments List</p>

<asp:DataGrid ID="GridTaxDocumentsList" runat="server" BackColor="#CACACA" 
    AutoGenerateColumns="False" Width="680px"
    BorderColor="#3A3A3A" BorderWidth="1px" CellPadding="2" ShowFooter="True"     
    ForeColor="#3A3634" 
    GridLines="None" oneditcommand="GridTaxDocumentsList_EditCommand1" 
    onitemcommand="GridTaxDocumentsList_ItemCommand1">
    <FooterStyle BackColor="#B7B7B7" 
        HorizontalAlign="Left" VerticalAlign="Bottom" />
    <SelectedItemStyle BackColor="Black" ForeColor="GhostWhite" />
    <PagerStyle ForeColor="White" HorizontalAlign="Center" PrevPageText="Prev.  " NextPageText="  Next."
        BackColor="#525252" />
    <HeaderStyle BackColor="#B7B7B7" Font-Bold="True" />
    <AlternatingItemStyle BackColor="#CACACA" />
    <Columns>
    
        
    <asp:TemplateColumn HeaderText="DocumentName">
        <ItemTemplate>
            <asp:Label ID="lblRoleName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DocumentName") %>'></asp:Label>
        </ItemTemplate>
        <FooterTemplate>
            <div style="float:left;padding-top:5px;margin:0 0 5px 5px;">
                <asp:LinkButton ID="btnAddNew" runat="server" CommandName="Insert"><asp:Image ID="imgAddNew" ImageUrl="~/images/add.gif" AlternateText="" BorderWidth="0px" runat="server" />Add New</asp:LinkButton>
            </div>            
        </FooterTemplate>
    </asp:TemplateColumn>
    
    <asp:TemplateColumn HeaderText="Document Description">
        <ItemTemplate>
            <asp:Label ID="lblDescription" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DocumentDescription") %>'></asp:Label>
        </ItemTemplate>
    </asp:TemplateColumn>
    
    <asp:TemplateColumn HeaderText="AddedDate">
        <ItemTemplate>
            <asp:Label ID="lblIsActive" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AddedDate") %>'></asp:Label>
        </ItemTemplate>
    </asp:TemplateColumn>
    
    <asp:TemplateColumn HeaderText="Action">
        <ItemTemplate>
            <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit" ForeColor="#3A3634">Edit</asp:LinkButton>
        </ItemTemplate>
        <FooterTemplate>
            
            <div style="text-align:right;padding-top:5px;margin:0 5px 5px 0">
                <asp:LinkButton ID="btnRefresh" runat="server" CommandName="RebindGrid"><asp:Image ID="Image2" ImageUrl="~/images/refresh.gif" AlternateText="" BorderWidth="0px" runat="server" />Refresh</asp:LinkButton>
            </div>
        </FooterTemplate>
    </asp:TemplateColumn>
    
    
    </Columns>
</asp:DataGrid>
